package src.io;

import java.io.*;

public class MyBrAndBwAndpw {
    public static void main(String[] args) throws IOException {
        BufferedReader r=new BufferedReader(new InputStreamReader(new FileInputStream("e:\\ceshi.txt")));

       // BufferedWriter w=new BufferedWriter(new OutputStreamWriter(new FileOutputStream("e:\\ceshi1.txt")));

        PrintWriter p=new PrintWriter("e:\\\\ceshi2.txt");
        String str;
        while ((str=r.readLine())!=null){
            System.out.println(str);
            p.println(str);
        }
        r.close();
        p.close();
    }
}
